package com.xg.java.util;

import javax.swing.filechooser.FileSystemView;
import java.io.File;

public class Reback {

    public static void main(String[] args) {
        FileSystemView fsv = FileSystemView.getFileSystemView();
        File com=fsv.getHomeDirectory();
        System.out.println(com.getPath()); //这便是桌面的具体路径
    }
}
